package com.happyghost.oop;

public class Father {

    static {
        System.out.print("B");
    }

    {
        System.out.print("A");
    }

    public Father(){
        System.out.print("C");
    }


    public static void main(String[] args) {
        new Sub();
    }
}

class Sub extends Father{


    static {
        System.out.print("F");
    }

    {
        System.out.print("E");
    }

    public Sub(){
        System.out.print("G");
    }

}
